#ifndef _HDR_FILE
#define _HDR_FILE

#include <cstdio>

class file{

    protected:
        FILE*   content;

    public:
        file();
        ~file();

        bool open(char*,const char* ="rb");

        bool opened();
        bool eof();

        size_t read(void*,size_t,size_t);
        size_t write(void*,size_t,size_t);

        int seek(long int,int);
        long int tell();
        void rewind();

        int fscanf(const char*,...);

};

#endif
